<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script src="js/draggable.js"></script>
    <title></title>
    <style>
        .frame{
            left: 100px;
            top: 100px;
            position: relative;
            margin: 10px;
            padding: 20px;
        }
        .box1{
            width: 100px;
            height: 100px;
            left: 0px;
            top: 0px;
            background-color: #999;
            position: relative;
            margin: 30px;
        }

        .box1 span{
            background-color: aqua;
            width: 100%;
            display: block;
        }
    </style>
</head>
<body>
<div class="frame">
    <div class="box1">
        <span>拖拽区</span>
    </div>
</div>

</body>
<script>
    $(document).ready(function (e) {
        $(".box1").draggable($(".box1 span"));
    })
</script>
</html>